<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Rep\NoteRep;
use Illuminate\Http\Request;

class Note extends Controller
{
    //短信设置
    protected $rep;

    public function __construct(Request $request)
    {
        $this->rep = new NoteRep();
    }

    /**
     * 获取短信配置列表
     * @param Request $request
     */
    public function getNoteList(Request $request){
        $params = $request->all();
        $data = $this->rep->getNoteListRep($params);
        return re(0,$data,'success');
    }

    /**
     * 添加编辑短信设置
     */
    public function createNote(Request $request){
        $params = $request->all();
        $data = $this->rep->createNoteRep($params);
        return re(0,$data,'success');
    }

}
